home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-02 / pas_all.zip / TI352.ASC < prev    next >
Text File  |  1992-08-12  |  3KB  |  133 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.   PRODUCT  :  TURBO PASCAL                           NUMBER  :  352
  10.   VERSION  :  3.01A - 3.02A
  11.        OS  :  PC-DOS
  12.      DATE  :  JULY 1, 1987                                   :  1/2
  13.     TITLE  :  ADDING DRIVE LETTERS UP TO "Z"
  14.  
  15.  
  16.  
  17.  
  18.   The Turbo Pascal, Version 3.01A, ChDir procedure causes an I/O
  19.   error if the drive designator is greater than Q:. This can be
  20.   troublesome for installations whose LASTDRIVE is set to a higher
  21.   letter. The comparison that enforces this limit is at address 2CA
  22.  
  23.   This patch is worthwhile even if you never use any drive letters
  24.   beyond Q, for the change will affect all the programs you
  25.   compile. To apply the patch, first make a copy of TURBO.COM, PC-
  26.   DOS, Version 3.01A (never patch the original of any program!).
  27.   Load
  28.  
  29.              DEBUG TURBO.COM
  30.  
  31.   At DEBUG'S "-" prompt, enter the command U 2CA3. This will
  32.   Unassemble the program starting with the instruction at offset
  33.   2CA3. The first instruction you see there should be CMP AL, OF.
  34.   (If it is not, you are patching the wrong version of Turbo - see
  35.   belo
  36.  
  37.           C:\TURBO>debug turbo.com
  38.           -u 2ca3
  39.           56F9:2CA3 3C0F      CMP      AL 0F
  40.           56F9:2CA5 73A7      JNB      2C4E
  41.  
  42.  
  43.           -e 2ca4
  44.           56F9:2CA4   0F.1b
  45.           -u 3737
  46.           56F9:3737  3C0F     CMP      AL,0F
  47.           56F9:3739  770C     JA       3747
  48.  
  49.  
  50.           -e 3738
  51.           56F9:3738  0F.1b
  52.           -w
  53.           Writing 9AF7 bytes
  54.           -q
  55.  
  56.  
  57.   To patch the 8087 and BCD versions, follow the same procedure
  58.   with different addresses. For TURBO-87.COM, Unassemble at
  59.   addresses 2756 and 3200, and Enter the patch at 2757 and 3201.
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.   PRODUCT  :  TURBO PASCAL                           NUMBER  :  352
  76.   VERSION  :  3.01A - 3.02A
  77.        OS  :  PC-DOS
  78.      DATE  :  JULY 1, 1987                             PAGE  :  2/2
  79.     TITLE  :  ADDING DRIVE LETTERS UP TO "Z"
  80.  
  81.  
  82.  
  83.  
  84.   For TURBOBCD.COM, Unassemble at addresses 2BB1 and 3658, and
  85.   Enter at 2B
  86.  
  87.   Reprinted by Permission:
  88.  
  89.                              PC Magazine
  90.                              January 13, 1987
  91.                              (c) 1987 Ziff Communications Company
  92.  
  93.   DISCLAIMER: You have the right to use this technical information
  94.   subject to the terms of the No-Nonsense License Statement that
  95.   you received with the Borland product to which this information
  96.   pertains.
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.